home *** CD-ROM | disk | FTP | other *** search
- /* The <string.h> header contains prototypes for the string handling
- * functions.
- */
-
- #ifndef _STRING_H
- #define _STRING_H
-
- #ifndef NULL
- #define NULL ((void *) 0)
- #endif
-
- #ifndef _SIZE_T
- #define _SIZE_T
- typedef unsigned int size_t; /* type returned by sizeof */
- #endif
-
- /* Function Prototypes. */
- #ifndef _ANSI_H
- #include <ansi.h>
- #endif
-
- _PROTOTYPE( void *memcpy, (void *__s1, const void *__s2, size_t __n) );
- _PROTOTYPE( void *memmove, (void *__s1, const void *__s2, size_t __n) );
- _PROTOTYPE( char *strcpy, (char *__s1, const char *__s2) );
- _PROTOTYPE( char *strncpy, (char *__s1, const char *__s2, size_t __n) );
- _PROTOTYPE( char *strcat, (char *__s1, const char *__s2) );
- _PROTOTYPE( char *strncat, (char *__s1, const char *__s2, size_t __n) );
- _PROTOTYPE( int memcmp, (const void *__s1, const void *__s2, size_t __n) );
- _PROTOTYPE( int strcmp, (const char *__s1, const char *__s2) );
- _PROTOTYPE( int strcoll, (const char *__s1, const char *__s2) );
- _PROTOTYPE( int strncmp, (const char *__s1, const char *__s2, size_t __n) );
- _PROTOTYPE( size_t strxfrm, (char *__s1, const char *__s2, size_t __n) );
- _PROTOTYPE( void *memchr, (const void *__s, int __c, size_t __n) );
- _PROTOTYPE( char *strchr, (const char *__s, int __c) );
- _PROTOTYPE( size_t strcspn, (const char *__s1, const char *__s2) );
- _PROTOTYPE( char *strpbrk, (const char *__s1, const char *__s2) );
- _PROTOTYPE( char *strrchr, (const char *__s, int __c) );
- _PROTOTYPE( size_t strspn, (const char *__s1, const char *__s2) );
- _PROTOTYPE( char *strstr, (const char *__s1, const char *__s2) );
- _PROTOTYPE( char *strtok, (char *__s1, const char *__s2) );
- _PROTOTYPE( void *memset, (void *__s, int __c, size_t __n) );
- _PROTOTYPE( char *strerror, ( int __errnum) );
- _PROTOTYPE( size_t strlen, (const char *__s) );
-
- #ifndef __STRICT_ANSI__
- /*
- * from henry spencers string lib
- * these dont appear in ansi draft sec 4.11
- */
- _PROTOTYPE( void *memccpy, (void * dst, _CONST void * src, int ucharstop, size_t size) );
- _PROTOTYPE( char *strlwr, (char *) );
- _PROTOTYPE( char *strrev, (char *) );
- _PROTOTYPE( char *strdup, (_CONST char *s) );
-
- /*
- * V7 and BSD compatibility.
- */
- _PROTOTYPE( char *index, (_CONST char *s, int charwanted) );
- _PROTOTYPE( char *rindex, (_CONST char *s, int charwanted) );
- _PROTOTYPE(void bcopy, (_CONST void *, void *, long) );
- _PROTOTYPE(int bcmp, (_CONST void *, _CONST void *, long) );
- _PROTOTYPE(void bzero, (void *, long) );
- #endif /* __STRICT_ANSI__ */
-
- #endif /* _STRING_H */
-